home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / datatypes / binarydt / makefile < prev    next >
Makefile  |  1996-04-07  |  2KB  |  98 lines

  1. #
  2. # $PROJECT: binary.datatype
  3. #
  4. # $VER: Makefile 39.1 (19.03.95)
  5. #
  6. # by
  7. #
  8. # Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
  9. #
  10. # (C) Copyright 1995
  11. # All Rights Reserved !
  12. #
  13. # $DESCRIPTION:
  14. #
  15. # If you want to recompile the datatype you have to do some initial work, to
  16. # run this makefile !
  17. # First you must have installed the ixemul.library and the gnu make utility !
  18. # Second you have to set the VERSION,REVISION variables (In my environment it's
  19. # automatically set). Then you have to install the include makefiles from misc/
  20. # to gnu:share/gmk/. After this you need a assign called objs: to hold all
  21. # object files !
  22. # Now you can run make from this directory !
  23. #
  24. # $HISTORY:
  25. #
  26. # 19.03.95 : 039.001 : initial
  27. #
  28.  
  29. VERSTR     = $(VERSION).$(REVISION)
  30. NAME       = binary
  31. SHNAME     = bdt
  32. SHORT      = $(NAME).datatype -> displays any binary file
  33. PLACE      = util/dtype
  34. README     = Readme
  35.  
  36. RELEASE    = $(NAME)dt_$(VERSTR).lha
  37. RELEASEPAT = $(NAME)dt $(NAME)dt.info
  38.  
  39.  
  40. ##############################################################################
  41. #
  42. # just call the makefile in source for each cpu in CPUTOMAKE
  43. #
  44.  
  45. CPUTOMAKE = 000 \
  46.                 020
  47.  
  48. ##############################################################################
  49. #
  50. # docs and guides
  51. #
  52.  
  53. AUTODOCS = doc/$(NAME)_dtc.doc
  54. GUIDE    = help/$(NAME)_dtc
  55.  
  56. ##############################################################################
  57. #
  58. # source
  59. #
  60.  
  61. SRCS     = source/dispatch.c
  62.  
  63.  
  64. all:: cpuversions
  65.  
  66. cpuversions::
  67.     -@for i in $(CPUTOMAKE); \
  68.     do \
  69.         (cd source; echo "making 68$$i version of $(NAME).datatype"; \
  70.          make LIBSDEST='/Classes/datatypes/$(NAME).datatype.'$$i \
  71.                 SCOPTIMIZE='OPT OPTTIME CPU=68'$$i \
  72.                 OBJDIR='/objs/$(SHNAME)/rls'$$i \
  73.                 DEBUG='' ) ; \
  74.     done
  75.  
  76. documentation:: $(AUTODOCS) $(GUIDE)
  77.  
  78. include /gnu/share/gmk/autodoc.mk
  79.  
  80. release: cpuversions documentation $(RELEASE)
  81.  
  82. include /gnu/share/gmk/release.mk
  83.  
  84. #
  85. # convert autodoc to an amigaguide
  86. #
  87.  
  88. $(GUIDE) : $(AUTODOCS)
  89.     (cd doc; c:swtools/makexref $(<F) to t:binarydt.xref category TEMP NOICON)
  90.     (c:swtools/makexref include to t:binarydtinc.xref category TEMP Path AG:OtherInc/ NOICON)
  91.     c:swtools/loadxref t:binarydt.xref t:binarydtinc.xref
  92.     c:swtools/xrefconvert FROM $(AUTODOCS) TO $(@D) VERBOSE
  93.     c:swtools/expungexref category TEMP
  94.  
  95.  
  96. $(GUIDE) : $(HEADER)
  97.  
  98.